package com.ruoyi.system.api;


import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.domain.ProjectResearch;
import com.ruoyi.system.api.factory.RemoteProjectResearchFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(contextId = "remoteProjectResearchService",value = ServiceNameConstants.PROJECT_SERVICE,fallbackFactory = RemoteProjectResearchFallbackFactory.class)
public interface RemoteProjectResearchService {
        @GetMapping("/research/project/{projectId}")
        public R<ProjectResearch> getProjectInfo(@PathVariable("projectId") Long projectId);
}
